﻿<%@ Page Title="系统日志列表" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master"
    AutoEventWireup="true" CodeBehind="LogList.aspx.cs" Inherits="Besture.UI.Admin.Sys.LogList" %>

<%@ Register TagPrefix="dxwgv" Namespace="DevExpress.Web.ASPxGridView" Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dx" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="mainbox"> 
        <div class="operateBar">
			<ul>  
               <li>
                    <dx:ASPxButton ID="btnDel" runat="server" UseSubmitBehavior="False" Text="删除90天前日志数据"
                        OnClick="BtnDelClick">
                        <ClientSideEvents Click="function(s, e) { e.processOnServer= confirm('删除后无法恢复，确定删除吗?'); }" />
                    </dx:ASPxButton>
                </li> 
			</ul>
        </div> 
        <dxwgv:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" Width="99%"
            AutoGenerateColumns="True" KeyFieldName="ID" OnCustomCallback="grid_CustomCallback">
            <Columns>
                <dxwgv:GridViewDataTextColumn Caption="编号" VisibleIndex="1" Width="5%" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="id">
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="日志模块" VisibleIndex="2" Width="15%" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="Modules">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="日志内容" VisibleIndex="3" Width="50%" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Left" FieldName="LogContent">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="操作用户" VisibleIndex="4" Width="15%" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="LoginName">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataDateColumn Caption="操作时间" VisibleIndex="5" Width="15%" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="CreateTime">
                    <PropertiesDateEdit DisplayFormatString="{0:yyyy-MM-dd HH:mm:ss}">
                    </PropertiesDateEdit>
                </dxwgv:GridViewDataDateColumn>
            </Columns>
        </dxwgv:ASPxGridView>
    </div>
</asp:Content>
